const http = uni.$u.http

/**
 * 获取统计数据接口
 * @param {
	 months 
	}
 */
export const GetStatistics = {
	allFirstNode: (params) => {
		return http.get('/api/dashboard/summary', {
			params
		});
	},
	// 建档管理
	FilingManagement: (params) => {
		return http.get('/api/dashboard/summary/archive', {
			params
		});
	},
	// 备货
	StockUp: (params) => {
		return http.get('/api/dashboard/summary/material', {
			params
		});
	},
	// 发货
	DeliverGoods: (params) => {
		return http.get('/api/dashboard/summary/delivery', {
			params
		});
	},
	// 派工
	Dispatch: (params) => {
		console.log('Dispatch', params)
		return http.get('/api/dashboard/summary/dispatch', {
			params
		});
	},
	// 完工
	Finished: (params) => {
		return http.get('/api/dashboard/summary/dispatchFinish', {
			params
		});
	},
	// 并网
	GridConnection: (params) => {
		return http.get('/api/dashboard/summary/mergeGrid', {
			params
		});
	},
	// 竣工
	Completed: (params) => {
		return http.get('/api/dashboard/summary/acceptance', {
			params
		});
	},
	// 终验
	FinalInspection: (params) => {
		return http.get('/api/dashboard/summary/finalAcc', {
			params
		});
	},
}
/**
 * 获取 建档管理 列表数据
 * @param {
		pageSize,
		pageNum
		searchValue,
		months,
		state
	}
 */
export function GetListOfFilingManagement(params) {
	return http.get('/api/dashboard/list/archives', {
		params
	});
}
//  获取 备货 列表数据
export function GetListOfStockUp(params) {
	return http.get('/api/dashboard/list/material', {
		params
	});
}
//  获取 发货 列表数据
export function GetListOfDeliverGoods(params) {
	return http.get('/api/dashboard/list/delivery', {
		params
	});
}
//  获取 派工 列表数据
export function GetListOfDispatch(params) {
	return http.get('/api/dashboard/list/dispatch', {
		params
	});
}
//  获取 完工 列表数据
export function GetListOfFinished(params) {
	return http.get('/api/dashboard/dispatchFinish/list', {
		params
	});
}
//  获取 并网 列表数据
export function GetListOfGridConnection(params) {
	return http.get('/api/dashboard/mergeGrid/list', {
		params
	});
}
//  获取 竣工 列表数据
export function GetListOfCompleted(params) {
	return http.get('/api/dashboard/acceptance/list', {
		params
	});
}
//  获取 终验 列表数据
export function GetListOfFinalInspection(params) {
	return http.get('/api/dashboard/finalAcc/list', {
		params
	});
}